import turtle
a = ['purple', 'red', 'yellow', 'pink'] # 定义一个颜色列表，用于后续绘制花瓣时改变颜色
turtle.setup(650, 350, 200, 200)
turtle.penup()
turtle.fd(-250)
turtle.pendown()
turtle.pensize(25)
turtle.seth(-40)
for i in range(4):    # 使用循环绘制四朵花瓣
 turtle.pencolor(a[i])
 turtle.circle(40, 80)
 turtle.circle(-40, 80)
turtle.pencolor('green')
turtle.circle(40, 80/2)
turtle.fd(40)
turtle.circle(16, 180)
turtle.fd(40 * 2/3)
turtle.done()
